home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / GAME_CGA / KDRANCH.LZH / KDPOKANL.DOC < prev    next >
Text File  |  1989-02-24  |  18KB  |  330 lines

  1.   
  2.  
  3.                                 KDPokAnl
  4.              KD Poker Analysis - Version 1.0 - February 1989
  5.                   A Product of KD Ranch Enterprises (c)
  6.                       [Written in Turbo Pascal 5.0]
  7.  
  8. NOTE: 
  9.  
  10.     Most of the information and instructions needed to use this program 
  11.     is summarized in the online help and/or is displayed on screen when
  12.     pertinent.  This .DOC file simply provides elaboration for clarity.
  13.  
  14.  
  15. GENERAL:
  16.  
  17.     KDPokAnl is actually two programs in one:                            
  18.       1). The PLAY mode emulates those extremely popular (and addictive)
  19.           video poker machines found all over the place in legal gambling
  20.           areas.  There are a lot of these games floating around on bulletin
  21.           boards (including a couple from KD Ranch Enterprises) and even some
  22.           available commercially.  This specific version will play fast (even
  23.           on a 4.77 mhz machine) and can be slowed to virtually any speed with
  24.           which you are comfortable.  It also allows you to set the payoffs and
  25.           whether you want to play with Jacks or Better OR Tens or Better. 
  26.           These last two items are important because the real video poker
  27.           machines will vary dramatically.  You set this one up just like the
  28.           one(s) that took all your money the last time you were in Vegas.
  29.  
  30.       2). The ANALYSIS mode allows you to set up any hand and draw to that
  31.           hand repeatedly to help you determine the best strategies while
  32.           playing these video poker machines.  This is really the reason this
  33.           program was built.  
  34.  
  35.           Playing video poker properly is much more complicated than one would
  36.           think. It is certainly more difficult than blackjack or craps from
  37.           a mathematical perspective.  Both of those games can be distilled 
  38.           down to a reasonable set of probabilities, which when combined with
  39.           their fairly simple payoffs, can be calculated with a great deal of
  40.           accuracy.  The big problem with video poker is NOT calculating the
  41.           probability of successfully drawing to any given hand -- any first
  42.           year statistics student can do that.  The real problem is to determine
  43.           which of many possible options to chose when considering the potential
  44.           payoff. That is what ANALYSIS mode is designed to help you determine.
  45.           How to use ANALYSIS mode and some examples are discussed in detail
  46.           later after we cover some basics.
  47.  
  48. COMMAND SYNTAX: 
  49.  
  50.     >KDPOKANL [p,s,x,0-9]
  51.       Where:
  52.          p   - PLAY mode      (default - ANALYSIS mode).
  53.          s   - SOUND on       (default - SOUND off).
  54.          x   - TENS or Better (default - JACKS or Better)
  55.          0-9 - SPEED reducer  (default - 0 (fastest))
  56.  
  57.       EXAMPLE:             > KDPOKANL x2p 
  58.       (Use NO spaces or commas, order and case make no difference):
  59.  
  60. SETTINGS:
  61.  
  62.     Tens or Better vs.Jacks or Better:                       
  63.        The lowest value hand that most video poker games will provide a payoff
  64.        is usually Jacks or Better.  There are some machines that will payback
  65.        on Tens or Better.  You should note, however, that generally, the payoff
  66.        multiples (described below) tend to decrease considerably on Tens or 
  67.        Better machines.  Bet "x" in PLAY mode (no quotes, case makes no diff)
  68.        or use "x" as the first position of any card selection in ANALYSIS 
  69.        mode to toggle between Jacks/Tens or use the "x" parameter from the 
  70.        command line to set Tens.  Jacks is the default.
  71.  
  72.     Payoff Multiples:
  73.        The Payoff Multiples is a table that will be found on all machines in one
  74.        form or another.  Regardless of the form used, they all serve the same
  75.        function -- determine how much to return to the player on a "winning"
  76.        hand.  KDPokAnl uses a table that looks like this:
  77.  
  78.                   HAND NAME            PAYOFF           
  79.                 JACKS OR BETTER        1 for 1     (Bet Returned)
  80.                 TWO PAIR               2 for 1 
  81.                 THREE OF A KIND        3 for 1 
  82.                 STRAIGHT               5 for 1 
  83.                 FLUSH                  7 for 1 
  84.                 FULL HOUSE             9 for 1 
  85.                 FOUR OF A KIND        25 for 1 
  86.                 STRAIGHT FLUSH       100 for 1 
  87.                 ROYAL FLUSH         1000 for 1 
  88.  
  89.        Notice that the table uses the term "for" (e.g. 3 FOR 1).  That means
  90.        that if you have put in 1 unit (read coin), and your final hand is
  91.        Three of a Kind, the machine will payoff 3 units.  Your actual net "win" 
  92.        is only 2 units. By the way, 3 "FOR" 1 and 2 "TO" 1 mean the same thing.
  93.        Something worth watching for as you search for machines in a casino!
  94.  
  95.        In case you are wondering what the big deal is about Payoff Multiples,
  96.        you should be aware that all video poker machines are not created equal.
  97.        The Payoff Multiples will vary from machine to machine even in the same
  98.        casino (even in the same row of machines sometimes!).  Because of this,
  99.        KDPokAnl allows you to set the multiples.  Betting "m" in PLAY mode or
  100.        using "m" as the first position of any card selection in ANALYSIS mode
  101.        will pop-up the Payoff Multiples screen. If you want, you can change any
  102.        of the multiples from there. The default multiples (shown above) are 
  103.        probably about the best you'll find anywhere. Changing these multiples to
  104.        match the various machines is imperative to get accurate analysis.
  105.  
  106.     Speed:
  107.        Speed is only active in PLAY mode and only affects one thing -- how fast
  108.        the cards are dealt.  It does not affect calculations, shuffle speed, 
  109.        etc. It is included in this program simply to make play more comfortable 
  110.        on fast machines.  Speed is controlled by setting a Reducer.  0 
  111.        reduction is fastest and a reduction factor of 9 is the slowest. Betting
  112.        "r" will increment the reduction factor (after it hits 9, it rolls back
  113.        to 0). The default reducer is 0. You cannot set speed from ANALYSIS mode.
  114.        The reduction factor can also be set as a command line parameter (0-9).
  115.  
  116.     Sound:
  117.        There are some elementary sound effects included (coins falling, cards
  118.        being turned, counter click, etc.).  If you want these sounds on, bet
  119.        "s" in PLAY mode or hit "s" as the first position of any card selection 
  120.        in ANALYSIS mode.  The "s" is an on/off toggle.  It can also be set as
  121.        a command line parameter.  Sound off is the default.
  122.  
  123. PLAYING (PLAY MODE):
  124.  
  125.     Specific playing instructions are displayed on screen when relevant, but
  126.     here is a quick synopsis:
  127.  
  128.        BET:
  129.        At the BET prompt, just hit the number representing the amount you would
  130.        like to wager.  The options are 1 - 5 units. Real machines will ask you
  131.        to "INSERT 1 - 5 COINS".  The term "units" is used just to allow you to
  132.        decide which type of machine you are playing (quarter,dollar,etc.).
  133.        [Remember, the other settings are also accessed at the BET prompt.  Hit
  134.         the key letter instead of a 1 - 5.]
  135.  
  136.        DISCARD:
  137.        After you have placed your bet, the initial 5 cards will be dealt. You
  138.        will then have to indicate which of these 5 cards (if any) you want to
  139.        HOLD.  Press the key(s) (1 - 5) that correspond to the card(s) you wish
  140.        to keep.  An indicator will give the current status of each card.  The
  141.        keys are toggles -- if you make a mistake, just hit it again.  Hit ENTER
  142.        when you are satisfied.  Any card not marked HOLD will be discarded and
  143.        replaced.
  144.  
  145.        PAYOFF and STATISTICS:
  146.        Upon completion of the discard, the payoff (if any) is automatically
  147.        calculated based on the payoff multiples table (see above) and your
  148.        current status (ahead/behind) is updated.  Additionally, an ongoing
  149.        statistics table is maintained just for the heck of it.  This table
  150.        will continue to accumulate as long as you stay in PLAY mode.  Exiting
  151.        or moving to ANALYSIS mode then back again will clear it.  
  152.  
  153.     At this point you are ready to place another bet and restart the sequence.
  154.  
  155. ANALYSIS (ANALYSIS MODE):
  156.  
  157.     The best way to explain ANALYSIS mode, both in terms of how to operate the
  158.     analysis and why it is of value is to work through an example:
  159.  
  160.     Question:  You are playing video poker at your favorite casino.  You have
  161.                just been dealt Ace of Hearts (AH), King of Clubs(KC), Queen
  162.                of Spades(QS), 5 of Diamonds(5D) and 8 of Clubs(8C).  What should
  163.                you HOLD?  The answer may surprise you.
  164.  
  165.     Procedure:
  166.        Initial Deal:
  167.                From ANALYSIS mode, set up the initial hand by pressing AH,KC,
  168.                QS,5D and 8C.  You don't need to press ENTER and don't press the
  169.                commas.  As you complete each card, it will appear.  
  170.  
  171.        Discard (Select cards to hold):
  172.                After the fifth card is displayed, you will then select the 
  173.                cards you want to HOLD. For this example,HOLD what seems obvious,
  174.                AH,KC,QS by pressing the 1,2 and 3 keys.  Make sure that the
  175.                word "HOLD" appears under these three cards.  Hit ENTER.   
  176.  
  177.        Repetitions:
  178.                You will then be asked how many repetitions to perform.  Based 
  179.                on the number you enter, the computer will repeatedly reshuffle
  180.                the remaining 47 cards, discard the two cards you did not HOLD
  181.                (5D and 8C) and replace them with two different cards.[Obviously,
  182.                it will never pick those two cards or the three you held -- they
  183.                are gone from the deck!]   So, input a number - 5000 is a good 
  184.                place to start - and hit ENTER.
  185.  
  186.                The display will count the number of repetitions performed by
  187.                100's.  When the 5000 is reached, the detailed results of the
  188.                draws are displayed.  If you are using a 12mhz AT this will take
  189.                about 30 seconds -- a 4.77 mhz machine will take quite a bit
  190.                longer.  Most of the information is presented for detailed
  191.                analysis, if you are interested.  The important number is TOTAL
  192.                RETURNED.  This is the number you will use for comparison after
  193.                you run a different draw scenario using the same initial deal.
  194.                Either write this number down or hit F5 to print the results --
  195.                please be sure you have a printer attached and it is ready.
  196.  
  197.        Comparison:
  198.                Now, hit "a" to run another analysis. Select the same five cards.
  199.                You can do this easily by just hitting ENTER five times.  This
  200.                time HOLD only the KC and QS (keys 2 and 3). Hit ENTER when only
  201.                those two cards are marked HOLD.  Input 5000 for the repetitions
  202.                and hit ENTER.  After your 5000 draws are counted off, the new
  203.                analysis will be displayed.  Compare this TOTAL RETURN with the
  204.                previous one.  You should find that it is better to toss the Ace
  205.                along with the 5 and 8 than to keep it!  Other possibilities
  206.                exist like keeping the Ace/King or just keeping the Ace, etc. If
  207.                you think any of the other options are better, try them - that's
  208.                what this program is all about.
  209.  
  210.     Other Analysis items:
  211.  
  212.        Manual Repetitions:
  213.                Normally, while repetitions are being processed, the drawn cards
  214.                are not displayed. Displaying cards is the slowest thing around.
  215.                If, for some strange reason, you would like to see the draws
  216.                occurring in ANALYSIS mode, enter "m" when asked for repetitions
  217.                instead of a number. The draws will proceed based on a key press
  218.                instead of automatically and you will be able to see which cards
  219.                have been drawn.  The counter will count by 1's instead of 100's.
  220.  
  221.        Statistical Theory:
  222.                The basis of the reliability of the analysis procedure used in
  223.                KDPokAnl is taken from normal statistical theory -- something
  224.                like:  "When consistently applied to a sufficiently large 
  225.                universe, any emerging pattern of random events will accurately 
  226.                reflect the probability of the continuance of that pattern 
  227.                within definable confidence limits"  WHEW!  What that means in 
  228.                KDPokAnl terms is that if you deal enough hands you can be 
  229.                pretty darn sure that the results you see is what will happen 
  230.                on a real video poker machine. 
  231.  
  232.                The key to the above mouthful is "sufficiently large universe" 
  233.                or "deal enough hands".  What you will find is that some options
  234.                can produce results that are very close. Make sure that you use
  235.                enough repetitions to nullify the effects of short-term random
  236.                chance.  Watch for the extremely occasional Royal Flush to screw
  237.                up your analysis.
  238.  
  239.                Determining the best draw on these "close calls" is the critical
  240.                element in playing video poker correctly -- extending the length
  241.                of time you can play before you run out of money.  Trust me:
  242.  
  243.                NO MATTER HOW GOOD YOUR PLAYING STRATEGIES ARE FORMULATED, IF
  244.                YOU PLAY A VIDEO POKER MACHINE LONG ENOUGH, EVENTUALLY THE 
  245.                MACHINE WILL WIN.
  246.  
  247.                That is how casinos stay open.  The mathematics cannot be beat
  248.                over the long haul.  Of course in this rendition, you can set
  249.                the payoff multiples in such a way that you can win at will.  A
  250.                real machine won't do that.  Play the real machines for fun with
  251.                money you can afford to lose.  If, because of short term random
  252.                chance ("luck") you happen to get ahead, that's great.  That can
  253.                and will happen.  This is also part of why casinos stay open.
  254.                People do win once in while.  The strategies that you develop
  255.                from this program only lessen the odds against you.  GOOD LUCK!
  256.  
  257.        More Examples:
  258.                In case you are having a hard time trying to make up some hands
  259.                that don't have obvious draws, try these:
  260.  
  261.                AC  KD  JC  4H  8S (notice that the ace and jack are both clubs)
  262.                4D  5C  6S  7H  7D (small pair vs an open-ended straight)
  263.                4D  5C  7H  8S  JD (one big card vs inside straight)
  264.                     
  265.                One of the best ways to develop an overall strategy is to just
  266.                play the game in PLAY mode and whenever a hand comes up that
  267.                you are not sure of, switch to ANALYSIS mode and run the
  268.                options through their paces.  
  269.  
  270. REQUISITE DISCLAIMER and OTHER STUFF:
  271.  
  272.        Every reasonable attempt has been made to offer a fun product that
  273.        may be of some use and be "bug" free.  I (the author) can, however,  
  274.        offer no guarantees as to the suitability or use of this program.
  275.        Therefore (here we go)...
  276.  
  277.                THIS PRODUCT IS PROVIDED "AS IS" AND
  278.                WITHOUT WARRANTIES EXPRESS OR IMPLIED.
  279.                THE USER ASSUMES ALL RISK ASSOCIATED
  280.                WITH THE USE OF THIS PROGRAM.                          
  281.  
  282.        *** I certainly disavow any responsibility for gambling losses! ***
  283.  
  284.        You may copy and distribute this program freely.  Please don't
  285.        charge for it and please provide this .DOC file with it.
  286.  
  287.        Anyone who is interested, can send the author (me) $5.00 or so.
  288.             (Mainly, I'm curious to see if anyone is interested!)
  289.  
  290.                                                 David A. Befort
  291.                                                 KD Ranch Enterprises (c)
  292.                                                 Rt.3, Box 8080
  293.                                                 Bartlesville, Ok. 74003
  294.  
  295.  
  296.  
  297. P.S.   While I'm not a programmer by profession, I have written a few
  298.        other things -- usually because I can't find or buy precisely
  299.        what I'm looking for. You may see some of these floating around.
  300.  
  301.  
  302.             KDQwik  - a small, easy word processor. Extremely straight
  303.                       forward for a beginner or an executive, yet with
  304.                       a few twists (like real-time sort) for the more
  305.                       aggressive.
  306.  
  307.             KDGraph - a pull-down menu driven graphics package for EGA/VGA.
  308.                       It's fast and does some 3D stuff along with your basic
  309.                       bars,lines and pies.
  310.  
  311.             KDCalcG - an EGA/VGA graphics implementation of a hand held
  312.                       calculator.  It has list, print, and does some neat
  313.                       stuff with its nine memory registers.
  314.  
  315.             KDCalc  - a non-graphics version of KDCalcG.  Has a few more 
  316.                       functions and can be made memory resident for
  317.                       pop-up capability.
  318.  
  319.             KDLogic - a set of 5 brain teaser logic puzzles (HiQ,Minefield,
  320.                       Mastermind,Fifteen Squares and Towers). Program can
  321.                       made memory resident for quick pop up and down.
  322.  
  323.             KDPoker - There are a lot of good blackjack games, but I couldn't
  324.                       find a good, true rendition of the Draw Poker machines
  325.                       that are now extremely popular in Las Vegas, Reno, etc.
  326.                       Two commercial versions I bought were awful.  This plays
  327.                       pretty much like the real thing.
  328.  
  329.  
  330.